package arena;

import com.jme.light.PointLight;
import com.jme.math.Vector3f;
import com.jme.renderer.ColorRGBA;

public class Light_Spot extends PointLight{
	private static final long serialVersionUID = 1L;
	public Light_Spot(boolean shadows, Vector3f distance)
	{
		super();
		new ColorRGBA();
		this.setEnabled(true);
		this.setAmbient(new ColorRGBA (1.0f,1.0f,1.0f,0.5f));
		this.setDiffuse(new ColorRGBA (0.5f,0.5f,0.5f,0.5f));
		this.setSpecular(new ColorRGBA(0.5f,0.5f,0.5f,0.5f));
		this.setLocation(distance);
		this.setAttenuate(true);
		this.setShadowCaster(shadows);
	}
}
